package com.dg.cuckoo.admin.service.impl;

import com.dg.cuckoo.admin.dto.proCarryOut.ProExpendDto;
import com.dg.cuckoo.admin.service.ExpendConstructionService;
import com.dg.cuckoo.admin.service.ExpendProphaseService;
import com.dg.cuckoo.common.utils.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExpendConstructionServiceimpl implements ExpendConstructionService {

    @Autowired
    private ExpendProphaseService service;


    @Override
    public void save(String projectId, ProExpendDto dto) {
        service.powerfulSave(4,projectId,dto);
    }

    @Override
    public void update(String id, String projectId, ProExpendDto dto) {
        service.powerfulUpdate(4,id,projectId,dto);
    }


    @Override
    public PageModel page(Integer page, Integer pageSize, String projectId) {
        return service.powerfulPage(4,page,pageSize,projectId);
    }

}
